package com.sunqianhu.design_patterns_23.behavioral.mediator;

public class User extends Colleague{
    private String name;

    public User(Mediator mediator, String name) {
        super(mediator);
        this.name = name;
    }

    @Override
    public void receive(String message) {
        System.out.println(name + " 收到消息: " + message);
    }
}
